package com.hmy.security.service;

import com.hmy.security.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author hmy
 * @since 2023-01-30
 */
public interface IUserService extends IService<User> {

    /**
     * 根据uid查询用户
     * @param uid uid
     * @return {@link User}
     */
    User getUserByUid(Long uid);

    /**
     * 根据用户名查询用户
     * @param name 用户名
     * @return {@link User}
     */
    User getUserByName(String name);

}
